#include<iostream>

using namespace std;

#define int long long
const int N = 1e5 + 10;
int n , k;
int a[N];

int check(int mid)
{
    int ret = 0;
    for(int i = 1;i <= n;i ++)
    {
        ret += (a[i] / mid);
    }
    return ret;
}
signed main()
{
    cin >> n >> k;
    for(int i = 1;i <= n;i ++) cin >> a[i];
    int left = 0 , right = 1e8;
    while(left < right)
    {
        int mid = (left + right + 1) / 2;
        if(check(mid) >= k) left = mid;
        else right = mid - 1;
    }
    cout << left << endl;
    return 0;
}